using Voodoo.Sauce.Core;
using Voodoo.Sauce.Privacy;

namespace Voodoo.Sauce.Debugger
{
	public class PrivacyDebugScreen : Screen
	{
		private void OnEnable()
		{
			ClearDisplay();
			PrivacyCore privacy = VoodooSauceCore.GetPrivacy();
			OpenFoldout("Settings");
			Label("CMP", privacy.GetCmpName);
			Label("Is GDPR Applicable", ((object)privacy.IsGdprApplicable()).ToString);
			Label("Is CCPA Applicable", ((object)privacy.IsCcpaApplicable()).ToString);
			Label("Is Ads Enforcement Enabled", ((object)privacy.IsAdsEnforcementEnabled()).ToString);
			Label("Is Adjust Enforcement Enabled", ((object)privacy.IsAdjustEnforcementEnabled()).ToString);
			CloseFoldout();
			OpenFoldout("Consent");
			Label("Ads", ((object)privacy.HasAdsConsent()).ToString);
			Label("Analytics", ((object)privacy.HasAnalyticsConsent()).ToString);
			CloseFoldout();
		}
	}
}
